package ru.urfc.portal.ui.client.model.catalogs;

import javax.xml.bind.annotation.XmlElement;

import ru.urfc.portal.ui.client.Constants;
import ru.urfc.portal.ui.client.Style;

public abstract class CatalogItemWithStyle implements Constants {

	private String code;
	private String text;
	
	public CatalogItemWithStyle(String code, String text) {
		this.code = code;
		this.text = text;
	}

	public abstract String getStyleName(Style style);
	
	@XmlElement
	public String getCode() {
		return code;
	}
	
	@XmlElement
	public String getText() {
		return text;
	}
	
}
